import xlwings as xw
app = xw.App(visible=False, add_book=False)
workbook = app.books.open('F:\\python\\第4章\\出库表2.xlsx')
worksheet = workbook.sheets[0]
worksheet.range('A2').row_height = 25
worksheet.range('C2').column_width = worksheet.range('B2').column_width
worksheet.range('D2').column_width = worksheet.range('E2').column_width
workbook.save('F:\\python\\第4章\\出库表3.xlsx')
workbook.close()
app.quit()
